package com.nova.edc.service.system;

import java.util.List;

import com.nova.edc.model.system.CustomerRegion;
import com.nova.frame.dao.pager.Page;
import com.nova.frame.dao.pager.PageList;

public interface CustomerRegionService {

	public List<CustomerRegion> findAll();

	public PageList<CustomerRegion> findPageList(CustomerRegion customerRegion,
			Page page, String sidx, String sord);

	public CustomerRegion getById(int id);

	public CustomerRegion getByCompanyId(int customerinfoid);

	public CustomerRegion insert(CustomerRegion customerRegion);

	public int update(CustomerRegion customerRegion);

	public int delete(CustomerRegion customerRegion);

	public int deleteById(int id);

	// 获取登录用户的客户及区域地址信息
	public List<CustomerRegion> findByDistinctRegion(int loginId);

	// 获取登录用户的相应区域的客户信息
	public List<CustomerRegion> findByLoginRegion(int loginId,
			String companyRegion);
}
